package com.lazyshopkeeper.front.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lazyshopkeeper.front.domain.DutyLemplate;
import com.lazyshopkeeper.front.persistence.DutyLemplateMapper;
import com.lazyshopkeeper.front.service.IDutyService;

@Service
public class DutyService implements IDutyService{

	private static Logger logger = LoggerFactory.getLogger(DutyService.class);
	
	@Autowired
	private DutyLemplateMapper dutyLemplateMapper;
	
	@Override
	public List<DutyLemplate> getAllDutyLemplate() {
		return dutyLemplateMapper.getAllDutyLemplate();
	}

	@Override
	public DutyLemplate getDutyLemplateBytype(String type) {
		return dutyLemplateMapper.getDutyLemplateBytype(type);
	}

}
